﻿using System.Reflection;
using Autofac;
using Autofac.Builder;
using Autofac.Features.Scanning;

namespace Inovout
{
    public static class RegistrationExtensions
    {
        public static IRegistrationBuilder<object, ScanningActivatorData, DynamicRegistrationStyle>
     RegisterCoreComponents(this ContainerBuilder builder, params Assembly[] domainAssemblies)
        {
             builder.Register(c => new ExceptionContext())
                     .InstancePerLifetimeScope();

             return null;
        }

    }
}
